/*
 * @Description:
 * @Version: 2.0
 * @Autor: wsh
 * @Date: 2024-03-25 11:27:16
 * @LastEditors: uphldjx 1373577124@qq.com
 * @LastEditTime: 2024-07-19 17:20:10
 */
// 项目管理
const omProjectManagement = (request) => {
	return {
		// 不分页查询项目合作
		view_omProjectCooperate_list(query = {}) {
			return request('/management/omProjectCooperate/list', {
				method: 'post',
				data: query,
			})
		},
		// 查询项目合作 权限与list相同：view_omProjectCooperate_list
		view_getOrgCooperateProjects(query = {}) {
			return request('/management/omProjectCooperate/getOrgCooperateProjects', {
				method: 'post',
				data: query,
			})
		},
		view_omProjectManagement_list(query = {}) {
			return request('/management/omProjectManagement/list', {
				method: 'post',
				data: query,
			})
		},
		view_omProjectManagement_page(query = {}) {
			return request('/management/omProjectManagement/page', {
				method: 'post',
				data: query,
			})
		},
		view_omProjectManagement_add(query = {}) {
			return request('/management/omProjectManagement/add', {
				method: 'post',
				data: query,
			})
		},
		view_omProjectManagement_edit(query = {}) {
			return request('/management/omProjectManagement/edit', {
				method: 'post',
				data: query,
			})
		},
		view_omProjectManagement_del(query = {}) {
			return request('/management/omProjectManagement/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
		view_omProjectCooperate_add(query = {}) {
			return request('/management/omProjectCooperate/add', {
				method: 'post',
				data: query,
			})
		},
		view_omProjectManagement_view(parameter) {
			return request(`/management/omProjectManagement/${parameter}`, {
				method: 'get',
			})
		},
		view_omProjectCooperate_del(query = {}) {
			return request('/management/omProjectCooperate/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
	}
}

// 楼栋信息
const dpCommunityHomeBuildingInfo = (request) => {
	return {
		view_dpCommunityHomeBuildingInfo_page(query = {}) {
			return request('/bussiness/dpCommunityHomeBuildingInfo/page', {
				method: 'post',
				data: query,
			})
		},
		view_dpCommunityHomeBuildingInfo_add(query = {}) {
			return request('/bussiness/dpCommunityHomeBuildingInfo/add', {
				method: 'post',
				data: query,
			})
		},
		view_dpCommunityHomeBuildingInfo_edit(query = {}) {
			return request('/bussiness/dpCommunityHomeBuildingInfo/edit', {
				method: 'post',
				data: query,
			})
		},
		view_dpCommunityHomeBuildingInfo_del(query = {}) {
			return request('/bussiness/dpCommunityHomeBuildingInfo/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
		// 导入
		view_dpCommunityHomeBuildingInfo_import(query = {}, onUploadProgress) {
			return request('/bussiness/dpCommunityHomeBuildingInfo/import', {
				method: 'post',
				headers: {
					'Content-Type': 'multipart/form-data; boundary=something',
				},
				onUploadProgress,
				data: query,
			})
		},
		// 导入模板下载
		view_dpCommunityHomeBuildingInfo_downloadTemplate(query = {}) {
			return request('/bussiness/dpCommunityHomeBuildingInfo/downloadTemplate', {
				method: 'post',
				responseType: 'blob',
				data: query,
			})
		},
	}
}
// 房间信息
const dpCommunityHomeRoomInfo = (request) => {
	return {
		view_dpCommunityHomeRoomInfo_page(query = {}) {
			return request('/bussiness/dpCommunityHomeRoomInfo/page', {
				method: 'post',
				data: query,
			})
		},
		view_dpCommunityHomeRoomInfo_add(query = {}) {
			return request('/bussiness/dpCommunityHomeRoomInfo/add', {
				method: 'post',
				data: query,
			})
		},
		view_dpCommunityHomeRoomInfo_edit(query = {}) {
			return request('/bussiness/dpCommunityHomeRoomInfo/edit', {
				method: 'post',
				data: query,
			})
		},
		view_dpCommunityHomeRoomInfo_del(query = {}) {
			return request('/bussiness/dpCommunityHomeRoomInfo/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
		// 导入
		view_dpCommunityHomeRoomInfo_import(query = {}, onUploadProgress) {
			return request('/bussiness/dpCommunityHomeRoomInfo/import', {
				method: 'post',
				headers: {
					'Content-Type': 'multipart/form-data; boundary=something',
				},
				onUploadProgress,
				data: query,
			})
		},
		// 导入模板下载
		view_dpCommunityHomeRoomInfo_downloadTemplate(query = {}) {
			return request('/bussiness/dpCommunityHomeRoomInfo/downloadTemplate', {
				method: 'post',
				responseType: 'blob',
				data: query,
			})
		},
	}
}

// 床位信息
const dpCommunityHomeBedInfo = (request) => {
	return {
		view_dpCommunityHomeBedInfo_page(query = {}) {
			return request('/bussiness/dpCommunityHomeBedInfo/page', {
				method: 'post',
				data: query,
			})
		},
		view_dpCommunityHomeBedInfo_add(query = {}) {
			return request('/bussiness/dpCommunityHomeBedInfo/add', {
				method: 'post',
				data: query,
			})
		},
		view_dpCommunityHomeBedInfo_edit(query = {}) {
			return request('/bussiness/dpCommunityHomeBedInfo/edit', {
				method: 'post',
				data: query,
			})
		},
		view_dpCommunityHomeBedInfo_del(query = {}) {
			return request('/bussiness/dpCommunityHomeBedInfo/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
		// 导入
		view_dpCommunityHomeBedInfo_import(query = {}, onUploadProgress) {
			return request('/bussiness/dpCommunityHomeBedInfo/import', {
				method: 'post',
				headers: {
					'Content-Type': 'multipart/form-data; boundary=something',
				},
				onUploadProgress,
				data: query,
			})
		},
		// 导入模板下载
		view_dpCommunityHomeBedInfo_downloadTemplate(query = {}) {
			return request('/bussiness/dpCommunityHomeBedInfo/downloadTemplate', {
				method: 'post',
				responseType: 'blob',
				data: query,
			})
		},
	}
}

// 社区居家服务白名单——申请设置
const fingerCheckInWhiteListSetting = (request) => {
	return {
		face_whiteListRule_add(query = {}) {
			return request('/management/whiteListRule/add', {
				method: 'post',
				data: query,
			})
		},
		face_whiteListRule_page(query = {}) {
			return request('/management/whiteListRule/page', {
				method: 'post',
				data: query,
			})
		},
		face_whiteListRule_edit(query = {}) {
			return request('/management/whiteListRule/edit', {
				method: 'post',
				data: query,
			})
		},
		face_whiteListRule_del(query = {}) {
			return request('/management/whiteListRule/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
	}
}

// 社区居家服务白名单——申请、审核
const fingerCheckInWhiteListApply = (request) => {
	return {
		view_serviceObjectWhitelist_add(query = {}) {
			return request('/management/serviceObjectWhiteList/add', {
				method: 'post',
				data: query,
			})
		},
		view_serviceObjectWhitelist_page(query = {}) {
			return request('/management/serviceObjectWhiteList/page', {
				method: 'post',
				data: query,
			})
		},
		view_serviceObjectWhitelist_edit(query = {}) {
			return request('/management/serviceObjectWhiteList/edit', {
				method: 'post',
				data: query,
			})
		},
		view_serviceObjectWhitelist_del(query = {}) {
			return request('/management/serviceObjectWhiteList/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
		view_serviceObjectWhitelist_approval(query = {}) {
			return request('/management/serviceObjectWhiteList/approval', {
				method: 'post',
				data: query,
			})
		},
		face_serviceObjectWhitelist_byIdCard(query = {}) {
			return request('/management/serviceObjectWhiteList/byIdCard', {
				method: 'post',
				data: query,
			})
		},
	}
}

const baseDataMod = (request) => {
	return {
		// 业务老人 - 列表
		view_omBusinessServiceObject_page(query = {}) {
			return request('/management/omBusinessServiceObject/page', {
				method: 'post',
				data: query,
			})
		},
		// 业务老人 - 删除
		view_omBusinessServiceObject_del(query = {}) {
			return request('/management/omBusinessServiceObject/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
		// 业务老人 - 编辑
		view_omBusinessServiceObject_edit(query = {}) {
			return request('/management/omBusinessServiceObject/edit', {
				method: 'post',
				data: query,
			})
		},
		// 业务老人 -导出
		view_omBusinessServiceObject_export(query = {}) {
			return request('/management/omBusinessServiceObject/export', {
				method: 'post',
				data: query,
			})
		},
		// 业务采集---老人导入
		view_businessGather_serviceObjectImport(query = {}, onUploadProgress) {
			return request('/bussiness/businessGather/serviceObjectImport', {
				method: 'post',
				headers: {
					'Content-Type': 'multipart/form-data; boundary=something',
				},
				onUploadProgress,
				data: query,
			})
		},
		// 业务采集---员工
		view_businessGather_practitionersGather(query = {}) {
			return request('/bussiness/businessGather/practitionersGather', {
				method: 'post',
				data: query,
			})
		},
		// 业务采集---员工导入
		view_businessGather_practitionersImport(query = {}, onUploadProgress) {
			return request('/bussiness/businessGather/practitionersImport', {
				method: 'post',
				headers: {
					'Content-Type': 'multipart/form-data; boundary=something',
				},
				onUploadProgress,
				data: query,
			})
		},
		// 业务员工--列表
		view_omBusinessPractitioners_page(query = {}) {
			return request('/management/omBusinessPractitioners/page', {
				method: 'post',
				data: query,
			})
		},
		// 业务员工--详情
		view_omBusinessPractitioners_view(id) {
			return request(`/management/omBusinessPractitioners/${id}`, {
				method: 'get',
			})
		},
		// 业务员工--新增
		view_omBusinessPractitioners_add(query = {}) {
			return request('/management/omBusinessPractitioners/add', {
				method: 'post',
				data: query,
			})
		},
		// 业务员工--编辑
		view_omBusinessPractitioners_edit(query = {}) {
			return request('/management/omBusinessPractitioners/edit', {
				method: 'post',
				data: query,
			})
		},
		// 业务员工 - 删除
		view_omBusinessPractitioners_del(query = {}) {
			return request('/management/omBusinessPractitioners/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
		// 服务对象二维码 - 列表
		serviceobject_qrcode_page(query = {}) {
			return request('/management/object/qrcode/page', {
				method: 'post',
				data: query,
			})
		},
		// 服务对象二维码 - 导出
		serviceobject_qrcode_download(query = {}) {
			return request('/management/object/qrcode/download', {
				method: 'post',
				data: query,
			})
		},
	}
}

// 服务项目管理
const itemsMod = (request) => {
	return {
		// 服务大类-列表
		management_omSupItem_page(query = {}) {
			return request('/management/omSupItem/page', {
				method: 'post',
				data: query,
			})
		},
		// 服务大类-新增
		management_omSupItem_add(query = {}) {
			return request('/management/omSupItem/add', {
				method: 'post',
				data: query,
			})
		},
		// 服务大类-编辑
		management_omSupItem_edit(query = {}) {
			return request('/management/omSupItem/edit', {
				method: 'post',
				data: query,
			})
		},
		// 服务大类-删除
		management_omSupItem_del(query = {}) {
			return request('/management/omSupItem/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},

		// 服务小类-列表
		management_omSubItem_page(query = {}) {
			return request('/management/omSubItem/page', {
				method: 'post',
				data: query,
			})
		},
		management_omSubItem_view(id) {
			return request(`/management/omSubItem/${id}`, {
				method: 'get'
			})
		},
		// 服务小类-新增
		management_omSubItem_add(query = {}) {
			return request('/management/omSubItem/add', {
				method: 'post',
				data: query,
			})
		},
		// 服务小类-编辑
		management_omSubItem_edit(query = {}) {
			return request('/management/omSubItem/edit', {
				method: 'post',
				data: query,
			})
		},
		// 服务小类-删除
		management_omSubItem_del(query = {}) {
			return request('/management/omSubItem/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
	}
}

// 项目规则设置
const omProjectRuleMode = (request) => {
	return {
		// 查询一条项目规则
		view_omProjectRule_one(query = {}) {
			return request('/management/omProjectRule/one', {
				method: 'post',
				data: query,
			})
		},
		// 项目规则-列表
		view_omProjectRule_page(query = {}) {
			return request('/management/omProjectRule/page', {
				method: 'post',
				data: query,
			})
		},
		// 项目规则-新增
		view_omProjectRule_add(query = {}) {
			return request('/management/omProjectRule/add', {
				method: 'post',
				data: query,
			})
		},
		// 项目规则-编辑
		view_omProjectRule_edit(query = {}) {
			return request('/management/omProjectRule/edit', {
				method: 'post',
				data: query,
			})
		},
		// 项目规则-删除
		view_omProjectRule_del(query = {}) {
			return request('/management/omProjectRule/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
	}
}

// 工单回访抽取规则
const omSpotRuleMode = (request) => {
	return {
		view_omSpotRule_page(query = {}) {
			return request('/management/omSpotRule/page', {
				method: 'post',
				data: query,
			})
		},
		view_omSpotRule_add(query = {}) {
			return request('/management/omSpotRule/add', {
				method: 'post',
				data: query,
			})
		},
		view_omSpotRule_edit(query = {}) {
			return request('/management/omSpotRule/edit', {
				method: 'post',
				data: query,
			})
		},
		view_omSpotRule_del(query = {}) {
			return request('/management/omSpotRule/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
		// 获取单条规则
		view_omSpotRule_one(query = {}) {
			return request('/management/omSpotRule/one', {
				method: 'post',
				data: query,
			})
		},
	}
}
// 工单抽查批次
const omSpotBatchMode = (request) => {
	return {
		// 根据抽查批次获取并生成抽查工单
		view_omSpotBatch_spotCheck(query = {}) {
			return request('/management/omSpotBatch/spotCheck', {
				method: 'post',
				data: query,
			})
		},
		view_omSpotBatch_page(query = {}) {
			return request('/management/omSpotBatch/page', {
				method: 'post',
				data: query,
			})
		},
		view_omSpotBatch_add(query = {}) {
			return request('/management/omSpotBatch/add', {
				method: 'post',
				data: query,
			})
		},
		view_omSpotBatch_edit(query = {}) {
			return request('/management/omSpotBatch/edit', {
				method: 'post',
				data: query,
			})
		},
		view_omSpotBatch_del(query = {}) {
			return request('/management/omSpotBatch/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
		// 获取单条规则
		view_omSpotBatch_one(id) {
			return request('/management/omSpotBatch/one', {
				method: 'post',
				data: {
					id,
				},
			})
		},
	}
}

//抽查/回访工单
const omSpotOrderMode = (request) => {
	return {
		//  抽查工单(回访工单[二次回访])
		view_omSpotOrder_page(query = {}) {
			return request('/management/omSpotOrder/page', {
				method: 'post',
				data: query,
			})
		},
		//  通过id查询抽查工单(回访工单[二次回访])
		view_omSpotOrder_view(id) {
			return request(`/management/omSpotOrder/${id}`, {
				method: 'get',
			})
		},
		//  抽查工单-回访
		view_omSpotOrder_visitBack(query = {}) {
			return request('/management/omSpotOrder/visitBack', {
				method: 'post',
				data: query,
			})
		},
		//  获取一条 抽查工单 -详情
		view_omSpotOrder_one(query = {}) {
			return request('/management/omSpotOrder/one', {
				method: 'post',
				data: query,
			})
		},
		// 回访工单统计
		view_omSpotOrder_statistics(query = {}) {
			return request('/management/omSpotOrder/statistics', {
				method: 'get',
				params: query,
			})
		},
		// 服务工单列表-业务
		view_omReposOrder_page(query = {}) {
			return request('/management/omReposOrder/page', {
				method: 'post',
				data: query,
			})
		},
		// 服务工单删除-业务
		view_omReposOrder_del(query = {}) {
			return request('/management/omReposOrder/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
		// 服务工单导出-业务
		view_omReposOrder_export(query = {}) {
			return request('/management/omReposOrder/export', {
				method: 'post',
				data: query,
			})
		},
		// 通过id查询业务工单(社区居家)
		view_omReposOrder_view(id) {
			return request(`/management/omReposOrder/${id}`, {
				method: 'get',
			})
		},
		// 通过id查询业务工单(社区居家)
		view_omReposOrder_detail(id) {
			return request(`/management/omReposOrder/detail`, {
				method: 'post',
				data: { id },
			})
		},
		// ***************** 工单操作记录 *****************
		view_omOrderOperatingRecord_page(query = {}) {
			return request('/management/omOrderOperatingRecord/page', {
				method: 'post',
				data: query,
			})
		},

		// 查询回访工单统计
		view_esSpotOrder_statistics(query = {}) {
			return request('/management/esSpotOrder/statistics', {
				method: 'get',
				params: query,
			})
		},
		// 组织回访满意度
		view_esSpotOrder_orgVisitResult(query = {}) {
			return request('/management/esSpotOrder/orgVisitResult', {
				method: 'post',
				data: query,
			})
		},
		// 查询年工单统计
		view_esReposOrder_orderStatistics(query = {}) {
			return request('/management/esReposOrder/orderStatistics', {
				method: 'post',
				data: query,
			})
		},
		// 区域工单统计
		view_esReposOrder_areaStatistics(query = {}) {
			return request('/management/esReposOrder/areaStatistics', {
				method: 'post',
				data: query,
			})
		},
		// 查询获取近一周回访情况
		view_esSpotOrder_week(query = {}) {
			return request('/management/esSpotOrder/weekSpotOrder', {
				method: 'get',
				params: query,
			})
		},
		// 回访结果统计
		view_esSpotOrder_returnVisit(query = {}) {
			return request('/management/esSpotOrder/returnVisit', {
				method: 'get',
				params: query,
			})
		},
		// 回访工单满意度统计
		view_esSpotOrder_visitResultStatistics(query = {}) {
			return request('/management/esSpotOrder/visitResultStatistics', {
				method: 'post',
				data: query,
			})
		},
    
		// 获取一条 工单评价 数据
		view_omOrderEvaluate_one(query = {}) {
			return request('/management/omOrderEvaluate/one', {
				method: 'post',
				data: query,
			})
		},
	}
}
// 助餐管理---菜品管理
const omDish = (request) => {
	return {
		view_omDish_page(query = {}) {
			return request('/management/omDish/page', {
				method: 'post',
				data: query,
			})
		},
		view_omDish_list(query = {}) {
			return request('/management/omDish/list', {
				method: 'post',
				data: query,
			})
		},
		view_omDish_add(query = {}) {
			return request('/management/omDish/add', {
				method: 'post',
				data: query,
			})
		},
		view_omDish_edit(query = {}) {
			return request('/management/omDish/edit', {
				method: 'post',
				data: query,
			})
		},
		view_omDish_del(query = {}) {
			return request('/management/omDish/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
	}
}

// 助餐管理---套餐管理
const omPackage = (request) => {
	return {
		view_omPackage_list(query = {}) {
			return request('/management/omPackage/list', {
				method: 'post',
				data: query,
			})
		},
		view_omPackage_page(query = {}) {
			return request('/management/omPackage/page', {
				method: 'post',
				data: query,
			})
		},
		view_omPackage_add(query = {}) {
			return request('/management/omPackage/add', {
				method: 'post',
				data: query,
			})
		},
		view_omPackage_edit(query = {}) {
			return request('/management/omPackage/edit', {
				method: 'post',
				data: query,
			})
		},
		view_omPackage_del(query = {}) {
			return request('/management/omPackage/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
		view_omPackage_view(id) {
			return request(`/management/omPackage/${id}`, {
				method: 'get',
			})
		},
	}
}

// 助餐管理---菜单管理
const omMenu = (request) => {
	return {
		view_omMenu_list(query = {}) {
			return request('/management/omMenu/list', {
				method: 'post',
				data: query,
			})
		},
		view_omMenu_page(query = {}) {
			return request('/management/omMenu/getByDate', {
				method: 'post',
				data: query,
			})
		},
		view_omMenu_add(query = {}) {
			return request('/management/omMenu/add', {
				method: 'post',
				data: query,
			})
		},
		view_omMenu_edit(query = {}) {
			return request('/management/omMenu/edit', {
				method: 'post',
				data: query,
			})
		},
		view_omMenu_del(query = {}) {
			return request('/management/omMenu/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
		view_omMenu_view(id) {
			return request(`/management/omMenu/${id}`, {
				method: 'get',
			})
		},
	}
}

// 补贴类别设置
const omSubsidyRule = (request) => {
	return {
		view_omSubsidyRule_page(query = {}) {
			return request('/management/omSubsidyRule/page', {
				method: 'post',
				data: query,
			})
		},
		view_omSubsidyRule_add(query = {}) {
			return request('/management/omSubsidyRule/add', {
				method: 'post',
				data: query,
			})
		},
		view_omSubsidyRule_edit(query = {}) {
			return request('/management/omSubsidyRule/edit', {
				method: 'post',
				data: query,
			})
		},
		view_omSubsidyRule_del(query = {}) {
			return request('/management/omSubsidyRule/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
		view_omSubsidyRule_view(id) {
			return request(`/management/omSubsidyRule/${id}`, {
				method: 'get',
			})
		},
	}
}

// 订单配送
const omOrder = (request) => {
	return {
		view_omOrder_page(query = {}) {
			return request('/management/omOrder/page', {
				method: 'post',
				data: query,
			})
		},
		view_omOrder_add(query = {}) {
			return request('/management/omOrder/add', {
				method: 'post',
				data: query,
			})
		},
		view_omOrder_edit(query = {}) {
			return request('/management/omOrder/edit', {
				method: 'post',
				data: query,
			})
		},
		view_omOrder_del(query = {}) {
			return request('/management/omOrder/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
		view_omOrder_view(id) {
			return request(`/management/omOrder/${id}`, {
				method: 'get',
			})
		},
	}
}

// 助餐管理---中心厨房/助餐点绑定关系
const omMealBind = (request) => {
	return {
		view_omMealBind_list(query = {}) {
			return request('/management/omMealBind/list', {
				method: 'post',
				data: query,
			})
		},
		view_omMealBind_page(query = {}) {
			return request('/management/omMealBind/page', {
				method: 'post',
				data: query,
			})
		},
		view_omMealBind_add(query = {}) {
			return request('/management/omMealBind/add', {
				method: 'post',
				data: query,
			})
		},
		view_omMealBind_edit(query = {}) {
			return request('/management/omMealBind/edit', {
				method: 'post',
				data: query,
			})
		},
		view_omMealBind_del(query = {}) {
			return request('/management/omMealBind/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
		view_omMealBind_view(id) {
			return request(`/management/omMealBind/${id}`, {
				method: 'get',
			})
		},
	}
}

// 异常数据-异常申诉处理
const omAppeal = (request) => {
	return {
		view_omAppeal_page(query = {}) {
			return request('/management/omAppeal/page', {
				method: 'post',
				data: query,
			})
		},
		view_omAppeal_approval(query = {}) {
			return request('/management/omAppeal/approval', {
				method: 'post',
				data: query,
			})
		},
		view_omAppeal_add(query = {}) {
			return request('/management/omAppeal/add', {
				method: 'post',
				data: query,
			})
		},
		view_omAppeal_addBatch(query = {}) {
			return request('/management/omAppeal/addBatch', {
				method: 'post',
				data: query,
			})
		},
		view_omAppeal_del(query = {}) {
			return request('/management/omAppeal/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
		view_omAppeal_view(id) {
			return request(`/management/omAppeal/${id}`, {
				method: 'get',
			})
		},
	}
}

// 对比规则-
const omCompareRule = (request) => {
	return {
		view_omCompareRule_page(query = {}) {
			return request('/management/omCompareRule/page', {
				method: 'post',
				data: query,
			})
		},
		view_omCompareRule_add(query = {}) {
			return request('/management/omCompareRule/add', {
				method: 'post',
				data: query,
			})
		},
		view_omCompareRule_edit(query = {}) {
			return request('/management/omCompareRule/edit', {
				method: 'post',
				data: query,
			})
		},
		view_omCompareRule_del(query = {}) {
			return request('/management/omCompareRule/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
		view_omCompareRule_view(id) {
			return request(`/management/omCompareRule/${id}`, {
				method: 'get',
			})
		},
	}
}

// 比对异常数据
const omCompareData = (request) => {
	return {
		// 分页查询异常工单及申诉数据
		view_omReposOrder_appealPage(query = {}) {
			return request('/management/omCompareData/reposOrderAppealPage', {
				method: 'post',
				data: query,
			})
		},
		// 分页查询比对异常及申诉数据
		view_omCompareData_appealPage(query = {}) {
			return request('/management/omCompareData/compareDataAppealPage', {
				method: 'post',
				data: query,
			})
		},
		view_omCompareData_page(query = {}) {
			return request('/management/omCompareData/page', {
				method: 'post',
				data: query,
			})
		},
		view_omCompareData_statisticsSimple(query = {}) {
			return request('/management/omCompareData/statisticsSimple', {
				method: 'post',
				data: query,
			})
		},

		view_omCompareData_add(query = {}) {
			return request('/management/omCompareData/add', {
				method: 'post',
				data: query,
			})
		},
		view_omCompareData_edit(query = {}) {
			return request('/management/omCompareData/edit', {
				method: 'post',
				data: query,
			})
		},
		view_omCompareData_del(query = {}) {
			return request('/management/omCompareData/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
		view_omCompareData_view(id) {
			return request(`/management/omCompareData/${id}`, {
				method: 'get',
			})
		},
	}
}

// 银发顾问培训记录
const amTrainRecord = (request) => {
	return {
		view_amTrainRecord_page(query = {}) {
			return request('/management/amTrainRecord/page', {
				method: 'post',
				data: query,
			})
		},
		view_amTrainRecord_export(query = {}) {
			return request('/management/amTrainRecord/export', {
				method: 'post',
				data: query,
			})
		},

		view_amTrainRecord_add(query = {}) {
			return request('/management/amTrainRecord/add', {
				method: 'post',
				data: query,
			})
		},
		view_amTrainRecord_edit(query = {}) {
			return request('/management/amTrainRecord/edit', {
				method: 'post',
				data: query,
			})
		},
		view_amTrainRecord_del(query = {}) {
			return request('/management/amTrainRecord/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
		view_amTrainRecord_view(id) {
			return request(`/management/amTrainRecord/${id}`, {
				method: 'get',
			})
		},
	}
}
// 银发顾问-服务需求记录控制器
const amDemandRecord = (request) => {
	return {
		view_amDemandRecord_page(query = {}) {
			return request('/management/amDemandRecord/page', {
				method: 'post',
				data: query,
			})
		},
		view_amDemandRecord_export(query = {}) {
			return request('/management/amDemandRecord/export', {
				method: 'post',
				data: query,
			})
		},

		view_amDemandRecord_add(query = {}) {
			return request('/management/amDemandRecord/add', {
				method: 'post',
				data: query,
			})
		},
		view_amDemandRecord_edit(query = {}) {
			return request('/management/amDemandRecord/edit', {
				method: 'post',
				data: query,
			})
		},
		view_amDemandRecord_del(query = {}) {
			return request('/management/amDemandRecord/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
		view_amDemandRecord_view(id) {
			return request(`/management/amDemandRecord/${id}`, {
				method: 'get',
			})
		},
	}
}

// 社会融合活动记录
const amActivityRecord = (request) => {
	return {
		view_amActivityRecord_page(query = {}) {
			return request('/management/amActivityRecord/page', {
				method: 'post',
				data: query,
			})
		},
		view_amActivityRecord_export(query = {}) {
			return request('/management/amActivityRecord/export', {
				method: 'post',
				data: query,
			})
		},

		view_amActivityRecord_add(query = {}) {
			return request('/management/amActivityRecord/add', {
				method: 'post',
				data: query,
			})
		},
		view_amActivityRecord_edit(query = {}) {
			return request('/management/amActivityRecord/edit', {
				method: 'post',
				data: query,
			})
		},
		view_amActivityRecord_del(query = {}) {
			return request('/management/amActivityRecord/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
		view_amActivityRecord_view(id) {
			return request(`/management/amActivityRecord/${id}`, {
				method: 'get',
			})
		},
		// 问询内容

		view_imChatMsg_page(query = {}) {
			return request('/management/imChatMsg/page', {
				method: 'post',
				data: query,
			})
		},
		// 银发顾问问询记录
		view_amTalkRecord_page(query = {}) {
			return request('/management/amTalkRecord/page', {
				method: 'post',
				data: query,
			})
		},
		view_amTalkRecord_export(query = {}) {
			return request('/management/amTalkRecord/export', {
				method: 'post',
				data: query,
			})
		},
		// 银发顾问问询记录-删除
		view_amTalkRecord_del(query = {}) {
			return request('/management/amTalkRecord/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
	}
}

// 银发顾问专家信息
const amAdviser = (request) => {
	return {
		view_amAdviser_page(query = {}) {
			return request('/management/amAdviser/page', {
				method: 'post',
				data: query,
			})
		},
		view_amAdviser_export(query = {}) {
			return request('/management/amAdviser/export', {
				method: 'post',
				data: query,
			})
		},

		view_amAdviser_add(query = {}) {
			return request('/management/amAdviser/add', {
				method: 'post',
				data: query,
			})
		},
		view_amAdviser_edit(query = {}) {
			return request('/management/amAdviser/edit', {
				method: 'post',
				data: query,
			})
		},
		view_amAdviser_one(query = {}) {
			return request('/management/amAdviser/one', {
				method: 'post',
				data: query,
			})
		},
		view_amAdviser_del(query = {}) {
			return request('/management/amAdviser/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
		view_amAdviser_view(id) {
			return request(`/management/amAdviser/${id}`, {
				method: 'get',
			})
		},
		// 地图设施数据
		view_dpServiceFacility_map(query = {}) {
			return request(`/bussiness/dpServiceFacility/map/page`, {
				method: 'post',
				data: query,
			})
		},
		// 地图机构数据
		view_dpServiceOrgBase_map(query = {}) {
			return request(`/bussiness/dpServiceOrgBase/map/page`, {
				method: 'post',
				data: query,
			})
		},
	}
}

// 特殊老人服务
const specialService = (request) => {
	return {
		view_omSpecialServiceObject_page(query = {}) {
			return request('/management/omSpecialServiceObject/page', {
				method: 'post',
				data: query,
			})
		},
		view_omSpecialServiceObject_view(id) {
			return request(`/management/omSpecialServiceObject/${id}`, {
				method: 'get',
			})
		},
		view_omSpecialServiceObject_add(query = {}) {
			return request('/management/omSpecialServiceObject/add', {
				method: 'post',
				data: query,
			})
		},
		view_omSpecialServiceObject_edit(query = {}) {
			return request('/management/omSpecialServiceObject/edit', {
				method: 'post',
				data: query,
			})
		},
		view_omSpecialServiceObject_del(query = {}) {
			return request('/management/omSpecialServiceObject/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
		// 导出
		view_omSpecialServiceObject_export(query = {}) {
			return request('/management/omSpecialServiceObject/export', {
				method: 'post',
				data: query,
			})
		},
		// 导入模板下载
		view_omSpecialServiceObject_downloadTemplate(query = {}) {
			return request('/bussiness/omSpecialServiceObject/downloadTemplate', {
				method: 'post',
				responseType: 'blob',
				data: query,
			})
		},
		// 导入
		view_omSpecialServiceObject_import(query = {}, onUploadProgress) {
			return request('/bussiness/omSpecialServiceObject/import', {
				method: 'post',
				headers: {
					'Content-Type': 'multipart/form-data; boundary=something',
				},
				onUploadProgress,
				data: query,
			})
		},
	}
}

export default ({ request }: any) => ({
	...omProjectManagement(request),
	...dpCommunityHomeBuildingInfo(request),
	...dpCommunityHomeRoomInfo(request),
	...dpCommunityHomeBedInfo(request),
	...fingerCheckInWhiteListSetting(request),
	...fingerCheckInWhiteListApply(request),
	...baseDataMod(request),
	...itemsMod(request),
	...omProjectRuleMode(request),
	...omSpotRuleMode(request),
	...omSpotBatchMode(request),
	...omSpotOrderMode(request),
	...omDish(request),
	...omPackage(request),
	...omMenu(request),
	...omMealBind(request),
	...omSubsidyRule(request),
	...omOrder(request),
	...omAppeal(request),
	...omCompareRule(request),
	...omCompareData(request),
	...amTrainRecord(request),
	...amDemandRecord(request),
	...amActivityRecord(request),
	...amAdviser(request),
	...specialService(request),
})
